﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;

namespace DataAccessLayer
{
    public class clsFileAccess
    {
        #region Properties
        private Uri FilePath { get; set; }
        #endregion

        #region Constructors
        /// <summary>
        /// Get access to any file.
        /// </summary>
        /// <param name="pFilePath">Path to the file.</param>
        public clsFileAccess(Uri pFilePath)
        {
            this.FilePath = pFilePath;
        }
        #endregion

        #region Events
        #endregion

        #region Public methods
        /// <summary>
        /// Determines if the file exists.
        /// </summary>
        /// <returns></returns>
        public Boolean FileExists()
        {
            return File.Exists(this.FilePath.LocalPath);
        }
        #endregion

        #region Private methods
        #endregion
    }
}
